.class Llt/noframe/gpsfarmguide/views/FragmentMap$7;
.super Lcom/google/android/gms/ads/AdListener;
.source "FragmentMap.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Llt/noframe/gpsfarmguide/views/FragmentMap;->showAd()V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Llt/noframe/gpsfarmguide/views/FragmentMap;


# direct methods
.method constructor <init>(Llt/noframe/gpsfarmguide/views/FragmentMap;)V
    .locals 0

    .line 819
    iput-object p1, p0, Llt/noframe/gpsfarmguide/views/FragmentMap$7;->this$0:Llt/noframe/gpsfarmguide/views/FragmentMap;

    invoke-direct {p0}, Lcom/google/android/gms/ads/AdListener;-><init>()V

    return-void
.end method


# virtual methods
.method public onAdFailedToLoad(I)V
    .locals 2

    .line 824
    iget-object v0, p0, Llt/noframe/gpsfarmguide/views/FragmentMap$7;->this$0:Llt/noframe/gpsfarmguide/views/FragmentMap;

    invoke-static {v0}, Llt/noframe/gpsfarmguide/views/FragmentMap;->access$100(Llt/noframe/gpsfarmguide/views/FragmentMap;)Lcom/google/android/gms/ads/AdView;

    move-result-object v0

    const/16 v1, 0x8

    invoke-virtual {v0, v1}, Landroid/view/ViewGroup;->setVisibility(I)V

    .line 825
    invoke-super {p0, p1}, Lcom/google/android/gms/ads/AdListener;->onAdFailedToLoad(I)V

    return-void
.end method

.method public onAdLoaded()V
    .locals 3

    .line 831
    invoke-super {p0}, Lcom/google/android/gms/ads/AdListener;->onAdLoaded()V

    .line 833
    :try_start_0
    iget-object v0, p0, Llt/noframe/gpsfarmguide/views/FragmentMap$7;->this$0:Llt/noframe/gpsfarmguide/views/FragmentMap;

    invoke-static {v0}, Llt/noframe/gpsfarmguide/views/FragmentMap;->access$100(Llt/noframe/gpsfarmguide/views/FragmentMap;)Lcom/google/android/gms/ads/AdView;

    move-result-object v0

    new-instance v1, Ljava/lang/Boolean;

    const/4 v2, 0x1

    invoke-direct {v1, v2}, Ljava/lang/Boolean;-><init>(Z)V

    invoke-virtual {v0, v1}, Landroid/view/ViewGroup;->setTag(Ljava/lang/Object;)V

    .line 834
    iget-object v0, p0, Llt/noframe/gpsfarmguide/views/FragmentMap$7;->this$0:Llt/noframe/gpsfarmguide/views/FragmentMap;

    invoke-static {v0}, Llt/noframe/gpsfarmguide/views/FragmentMap;->access$100(Llt/noframe/gpsfarmguide/views/FragmentMap;)Lcom/google/android/gms/ads/AdView;

    move-result-object v0

    invoke-virtual {v0}, Landroid/view/ViewGroup;->getContext()Landroid/content/Context;

    move-result-object v0

    if-eqz v0, :cond_0

    .line 835
    iget-object v0, p0, Llt/noframe/gpsfarmguide/views/FragmentMap$7;->this$0:Llt/noframe/gpsfarmguide/views/FragmentMap;

    iget-boolean v0, v0, Llt/noframe/gpsfarmguide/views/FragmentMap;->sprayStarted:Z

    if-nez v0, :cond_0

    sget-object v0, Llt/noframe/gpsfarmguide/utils/Preferences;->ADS_REMOVED:Llt/minvib/magicpreferences/MagicBooleanPreference;

    iget-object v1, p0, Llt/noframe/gpsfarmguide/views/FragmentMap$7;->this$0:Llt/noframe/gpsfarmguide/views/FragmentMap;

    invoke-static {v1}, Llt/noframe/gpsfarmguide/views/FragmentMap;->access$100(Llt/noframe/gpsfarmguide/views/FragmentMap;)Lcom/google/android/gms/ads/AdView;

    move-result-object v1

    invoke-virtual {v1}, Landroid/view/ViewGroup;->getContext()Landroid/content/Context;

    move-result-object v1

    invoke-virtual {v0, v1}, Llt/minvib/magicpreferences/MagicBooleanPreference;->get(Landroid/content/Context;)Ljava/lang/Boolean;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v0

    if-nez v0, :cond_0

    iget-object v0, p0, Llt/noframe/gpsfarmguide/views/FragmentMap$7;->this$0:Llt/noframe/gpsfarmguide/views/FragmentMap;

    invoke-static {v0}, Llt/noframe/gpsfarmguide/views/FragmentMap;->access$100(Llt/noframe/gpsfarmguide/views/FragmentMap;)Lcom/google/android/gms/ads/AdView;

    move-result-object v0

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/view/ViewGroup;->setVisibility(I)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception v0

    const-string v1, "Checking null context didn\'t help"

    .line 838
    invoke-static {v1}, Lcom/crashlytics/android/Crashlytics;->log(Ljava/lang/String;)V

    .line 839
    invoke-static {v0}, Lcom/crashlytics/android/Crashlytics;->logException(Ljava/lang/Throwable;)V

    :cond_0
    :goto_0
    return-void
.end method
